//
//  ZYjiaoyi.m
//  HaoDeCaiFu
//
//  Created by 物联信息中心 on 2018/1/4.
//  Copyright © 2018年 郑开宏. All rights reserved.
//

#import "ZYjiaoyi.h"

@implementation ZYjiaoyi
+ (NSDictionary *)objectClassInArray{
    return @{
             @"data" : @"ZYjiaoyi",
             };
}

-(void)setTransactionType:(NSString *)transactionType
{
    if ([transactionType isEqualToString:@"buy"]) {
        _transactionType=@"申购";
    }
    if ([transactionType isEqualToString:@"sellInto"]) {
        _transactionType=@"赎回款至钱包";
    }
    if ([transactionType isEqualToString:@"sell"]) {
        _transactionType=@"赎回";
    }
    if ([transactionType isEqualToString:@"rapidSell"]) {
        _transactionType=@"快速赎回";
    }
    if ([transactionType isEqualToString:@"sellOutfor"]) {
        _transactionType=@"购买基金";
    }
    if ([transactionType isEqualToString:@"fast.transfer.out"]) {
        _transactionType=@"转出";
    }
    if ([transactionType isEqualToString:@"fast.transfer.in"]) {
        _transactionType=@"转入";
    }
}

-(void)setTransactionStatus:(NSString *)transactionStatus
{
    if ([transactionStatus isEqualToString:@"failure"]) {
        _transactionStatus=@"支付失败";
    }
    if ([transactionStatus isEqualToString:@"received"]) {
        _transactionStatus=@"下单成功";
    }
    if ([transactionStatus isEqualToString:@"priced"]) {
        _transactionStatus=@"确认成功";
    }
    if ([transactionStatus isEqualToString:@"completed"]) {
        _transactionStatus=@"交易成功";
    }
    if ([transactionStatus isEqualToString:@"ipo.processing"]) {
        _transactionStatus=@"认购确认成功";
    }
    if ([transactionStatus isEqualToString:@"pending.payment"]) {
        _transactionStatus=@"等待付款";
    }
    if ([transactionStatus isEqualToString:@"canceling"]) {
        _transactionStatus=@"撤单中";
    }
    if ([transactionStatus isEqualToString:@"canceled"]) {
        _transactionStatus=@"已撤单";
    }
    if ([transactionStatus isEqualToString:@"pending.void"]) {
        _transactionStatus=@"等待退款";
    }
    if ([transactionStatus isEqualToString:@"void"]) {
        _transactionStatus=@"交易失败";
    }
}



@end
